<template>
  <div class="shart-index">
    <share-banner></share-banner>
    <div class="share-content-all">
      <div class="share-content-bg">
        <div class="home-content">
          <div class="actice-title-box">
            <img
              src="@/assets/image/share/active-title.png"
              class="title-icon"
              alt=""
            />
          </div>
          <div class="active-content">
            <img
              src="@/assets/image/share/active-ren.png"
              class="ren-icon"
              alt=""
            />
            <div class="content-title-box">
              <div class="en-title">Activity Rule Description</div>
              <div class="title">活动规则说明</div>
            </div>
            <div class="text-content">
              <p class="p">
                分享海报给好友，好友下单，立即赠送一年同等 IT
                运维支持服务或公司记账报税！
              </p>
              <p class="p">多推多送，无上限！活动截止到 10 月 1 日！</p>
              <p class="p">
                专业服务，超值回馈，让你的企业运营轻松无忧，畅享高效便捷！
              </p>
              <p class="p">快来参与，抓住这个难得的机会！</p>
            </div>
          </div>

          <div class="btn-box">
            <com-button type="primary" size="small" radius="radius-all"
              >立即生成专属海报</com-button
            >
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import shareBanner from "./components/share-banner/share-banner.vue";
import comButton from "@/components/com-button/com-button.vue";
</script>

<style lang="less">
@import "@/style/var.less";
.share-content-all {
  position: relative;
}
@media (min-width: 750px) {
  .share-content-bg {
    height: 589px;
    background-image: url("@/assets/image/home-accounting-bg.png");
    background-size: 100% 100%;
  }

  .home-content {
    width: @contentWhite;
    margin: auto;
    position: relative;
    .actice-title-box {
      text-align: center;
      padding-top: 108px;

      .title-icon {
        width: 366px;
        height: 40px;
      }
    }

    .active-content {
      background-image: url("@/assets/image/share/active-bg.png");
      background-size: 100% 100%;
      width: 1118px;
      padding: 20px 41px 38px 41px;
      margin: auto;
      margin-top: 28px;
      position: relative;
      box-sizing: border-box;
      .ren-icon {
        position: absolute;
        width: 203px;
        height: 203px;
        left: 19px;
        top: 33px;
      }
      .en-title {
        padding-top: 15px;
        font-size: 10px;
        line-height: 14px;
        color: #3e3e3e;
        text-align: center;
      }
      .title {
        text-align: center;
        margin-top: 4px;
        color: #5486ea;
        font-size: 28px;
        height: 40px;
        text-align: center;
        position: relative;
      }
      .title::after {
        content: "";
        width: 34px;
        height: 3px;
        background-color: #5486ea;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -12px;
      }

      .text-content {
        margin-top: 38px;
        padding-left: 228px;
        font-size: 12px;
        line-height: 24px;
        .p {
        }
      }
    }

    .btn-box {
      text-align: center;
      margin-top: 18px;
    }
  }
}
@media (max-width: 750px) {
  .share-content-bg {
    background-image: url("@/assets/image/home-accounting-bg.png");
    background-size: 100%;
    padding: 20px 10px 100px 10px;
  }

  .home-content {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px 20px 20px 20px;
    position: relative;
    .actice-title-box {
      text-align: center;
      padding: 35px 15px 0 15px;

      .title-icon {
        width: 164px;
      }
    }

    .active-content {
      margin-top: 25px;
      position: relative;
      box-sizing: border-box;

      .content-title-box {
        height: 66px;
        background-image: url("@/assets/image/share/active-bg.png");
        background-size: 100% 100%;
      }
      .ren-icon {
        position: absolute;
        width: 83px;
        height: 83px;
        left: 8px;
        bottom: 0;
      }
      .en-title {
        padding-top: 6px;
        font-size: 7px;
        line-height: 9px;
        color: #3e3e3e;
        text-align: center;
      }
      .title {
        text-align: center;
        margin-top: 3px;
        color: #5486ea;
        font-size: 14px;
        height: 20px;
        text-align: center;
        position: relative;
      }
      .title::after {
        content: "";
        width: 19px;
        height: 2px;
        background-color: #5486ea;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -12px;
      }

      .text-content {
        margin-top: 16px;
        padding-left: 96px;
        padding-bottom: 53px;
        font-size: 10px;
        line-height: 12px;
        .p {
        }
      }
    }

    .btn-box {
      text-align: center;
      margin-top: -27px;
    }
  }
}
</style>
